Deal with ZeroDivisionError.