Avoid division by zero erros