fixed issue with tree leafs