Fix issues exposed by 'go vet'