Guard against divide by zero