fixed a panic in influxd.go