Fix for script typos (a var and a comma missing)