Fix the bug where the rest of the tabList was cleaved when an element was removed