Fixed a bug in the update profile view

Fixed a bug with setting various fields on update.