fix expectedBytes() mismatch between edit packets and normal packets