nasty infinite loop in tree composition
fixes for tree composition and display