fix error type