Fix return values for failures.