avoid a division by zero