Fixed variable names in script