fix some bugs in edit profile