fix getAverageRating function