Fix data race detected by go's race detector
Merge pull request #10 from lytics/fix-race

Fix data race detected by go's race detector