bugfix in compose_iterators