avoid division by 0