Fixes for non-determinism.

Noticed when MPEAccuracy was not the same for different thresholds.