Fixed the editabilily of the tree view