fix division by zerro