Fixed bug in user profile edit