bug fix in editProfile