Fix pruning.