window.currentActiveTable is null in old cases at least