fix syntax errors in script