fix random permutations of cells