Fix middleware path