Fix labels for leaf nodes