fix event proxy serialization and deserialization