removed bug in statistics consumer