bugfix in tree2model trans