fixed shuffle bug.