Fixed defect in updating user role.