Fix small error in error handler