Fixed event serialization.