fix contig selection