simplify error handler timing
typo