Fix sorting machine.