Modify setOp() to call recalculatePermissions