fix a bug when reads span S/AS