minor changes to stats prevent division by zero