Fix update_rating not working