fix bug in runall_shuf