Changed average rating calculation