corrected a bug when retrieving contigs with no blocks.