Fix to use only the active tab from the current windows