sugar-stats: update deprecated syntax
Merge pull request #41 from scollazo/issues-deprecated_syntax2

sugar-stats: update deprecated syntax