fix NaN stats on firefox and safari mobile