fix for clear selected tab