fixing stats divise by zero