Fix tab selection