fix expectedBytes() mismatch between edit packets and normal packets
Merge pull request #1407 from ZappoMan/bugfixes

fix expectedBytes() mismatch between edit packets and normal packets