Fixes typo and syntax errors