Optimized list resize function changed