Fixed a bug in the collection view of the hierarchy tree.