fixed a bug in edit profile