type and event xid not saving