Fixed the tab-pane bug