Roll back middleware changes