Fix errors caught by linting program