fixed sequence number resume bug