Fixing valid stat logic for pruning.