fix for small typo in variable in error message

Causes an error to be raised since it doesn't exist