fixed error
fix error handler