fix bugs identified by go vet