Fix Contig Mode File Handling