fix event(terminate)