Fixed a bug in the view tree

Bug fix, only effects those organizing views in a tree.