prevent unwanted division by zero