Fix logic for deciding when to flip a mapped contig