Legal liability for rating agencies