fix size_of_object forloop