Fix sigfault

Sometime event_buffer_gets() rise sigfault