Fixed a non-determinism with invert-scores.