Fix avg_ratings solution.