Core data property not updating