Fixed issue when creating a new user profile not saved correctly.