Fix bug in buildTree that caused piping to not work.