fix bug for single end read