Fix retrieving collapsed contigs