Fix logic of when to prune div.title from tree.