fix analytics stats