Fixed typo in logic for divid by zero