Fixed issue with bad variable name access