fixes for problems found by go vet