Fixed issues with persisting minor number to Core Data