fixed errors on check_rating and get_total