fix for divide by zero, if there is no chd. (nw)