Fix division by zero