sugar-stats: update deprecated syntax