fix for incorrect sequence number