Fix syntax error in script