Fix memory access error in parser. And another bug in fastq-sample.