fix: cannot borrow immutable local variable `collected_iterator` as mutable