Are you calling instance destroy in set_click_func? If so, generally the scope will be the element and not the base object, so you’ll have to pass in the obj_autoGUImenu id as a parameter and destroy that.