Fixed a couple of bugs in both paired and single-end incarnations of the pipeline.