Fixing a bug in the middleware