Re #7327 Prune list correctly