fix error class