Make bootstrap collapsing of trees work