fix minor syntax errors