Fixed problem where tabId wasn't passed