Division by zero repair