Fix middleware Opps 0.2