fixbug of event fd