Fix typo that was currecting the wrong length

You're right, I derped pretty hard in #1

However this patch you still want, because you're truncating the wrong variable.

Cheers!