Fixing middleware boundary in `run()`