Fixed a bug that no error handler but error was happened