Fixed compilation of statistics