fix bug for mRNA count if input is sam