Fixed typo in variable name

Reported by Tom Waters