Fix 'switching' from a tab to the same one.