fix error classification