core data save to persistent store bug fixed