fix to show error class name in log