Fix critical bug in the `withAccess` method.