Fixed the tab creation issues.