fixed: query considered from the first nucleotide and no-ouput problem