fix exception message in LegacySerializationPolicy