Fix error type