fix user#average_rating error