Bugfix for writing contigs from previous iteration.