Fix deletion of oldest items.