Fixed small issue with ErrorHandler