Fix another method to be deterministic