fix: libevent mode crash