BUG: fix bug introduced by merge (iterator based for loop replaced by range based for loop)

22 jobs for !618 with app_multi_writer_take3 in 75 minutes and 26 seconds (queued for 1 second)
merge request