fix NPE for pairedend reads