fixed errorMethodMiddleware call