Fix typo and syntax error