Rename dev middleware and fix something that should've never worked