fix core data NSNumber bug