Minor fixes regarding stats.