fix test case not passing because of div by 0