fix error with express error handler