Fixing issue with double-routing.

In many cases the middleware would be requested TWICE, causing odd issues.