bug fix in count_transcripts