Fix the shuffle method.