fixed bug in user profile edit