fixed the processing of pair-end reads
Fixed pair-end read processing