The original middleware does not work for me. I fixed it.