Fixed duplicate opening of tabs.