Logging the reads caused bug when finding paired reads