Changed the result of zero denominator from 0 to 1