Fixed reflection of error type.