remove emptry attributes in tree node