fix go test race error