Fixed syntax and linter errors