fix the tab won't expand after change tab