Fix rating bug