fix bug in the CPU version when no shuffle