Fix typo that was currecting the wrong length