Corrected bug on activeTab