avoid a potential list modification during remove items causing layout flow.