Fix script syntax error