Fixed error with variable -- Script should work