fixed a bug in the editprofile view