Remove duplicate error handler