avoid a division by 0