bug fix divided by zero.