Fixed tabId bug (multiple tabs on page)