Fixed bug in whole contig alignment.