fixed the bug where a certain tab would not close.