fixed filter in Tree::copyContentsToBranch() #495