Fix delete_all_temp_objects