fix legacy message deserialization