Fixing bug when permuting trees with polytomies