Fixed invalid perm matrix given by gittins heuristic