Try to add config.middleware.use prefix to see if it works better