t3_middleware fixed