Bug fix for typo in variable name