Minor fix for getting active tab