Fixed some syntax errors in script