fix m_event.c, not complete