Fix syntax and linter errors.