fix divide by 0 in ratingService