Fix tab creating/removing behaviors.