Fixed sequence number always 0 issue.