fix divided by zero