Fixing a couple bugs related to alignment procedure with BWA.