fix event callback issue