fixed typo of variable name (thanks Lew)