Fix rating bugs