Bugfix for single-end mode