Bug fix caused by incorrect access of sequence number array.
Bug fix caused by incorrect access of sequence number array.

DanielKrawisz/bmagent,DanielKrawisz/bmclient,DanielKrawisz/bmclient,DanielKrawisz/bmagent