Potential fix for wrong execution order of Rack Middleware