Fix not getting data from correct tab.