Fixed typo in resetUserRights