fixed bug on commanding packet size