fix length's mistake