fix for small typo in variable in error message