Minor bug in copy_gui_item_tree