fix bug in thread ahead generator
Merge branch 'master' into short_reads