Fixed bug in edit profile