Fixed incorrect error handler init.