fix typo for length