fixed console errorHandler class