Handle divide by zero