Fixed the bug where selections could stay of items that do not exist anymore.