Fix `statistics` encoding

Match value with the correct key/name.
Merge pull request #250 from Incubaid/fix-statistics

Fix `statistics` encoding