fix typos in stats functionality