(fix) changed content length measure to byte size