Fix conflict with web.middleware

This seems to fix things without breaking things