fixed crash when mate reads appear in different input files