resolve core data bug