fix: error handler