html statistics bug fix