Fixes pruning.