fixed error when updated user profile