Correct error accounting.