fixed usage of incorrect variable name