Fix when a compare implementation fails as well as the reference implementation fails.