Fixed bug in updating user info.