fix error when no rating exist