fixed bug in mapq