Correct byte length calculation
v0.2.2