fix the problem for paired end iterator.