Fixed a shuffle bug.