correct some syntax errors