See for example Get_next is called many time before get_object, when CLI command is executed twice - #4 by cohult