bugfix for single end reads