Fix graphics item insertion ordering issue after deleting items.