fix assignment of express-error handler