Correct $lentgh in $length