Clear the item list correctly when needed