avoid division by zero