Fix a div by zero issue.