fix express middleware (provision)