Remove temp middleware