fix some syntax errors