fix error in stats