Fixed bug in deleting treeview item.