Resolved issues when not save values in core data