fix for firefox bug (activeTab === undefined)