fixed tree leader elect