Fixed weird bug in the sorting visualizer.