FIX not expected exception in checkRights()