fix a couple byte length mis-calculate issue