[#8] Fix listen to use middlware correctly.