Fix tab displaying when they shouldn't