fixed bug with calling delete branch on the selected root object