Fix updating totalRatings value