fix module event serialization