fix some minor syntax errors