Fixed a bug in TreeExpression::setChildren