Fixing error with variable name