fix for division by zero for stats