Fix errorHandler in console