Fix in checkAccess_static