fixed bug in edit profile