Fix syntax error and typo