Fixed a bug in the update profile page