Coping with invalid genomes.