if (win) { // Game was won, set completed in puzzle and time // Calculate seconds taken int timeTaken = (int)([NSDate timeIntervalSinceReferenceDate]
I did solve the same problem by delete and create the data model again and clean then rebuild again. I think the bug is caused by core data does not update some data inside sometimes.