Fix tab creation.