fixed average_rating not being a float