Fixed text centering issue in tree