fix event unreg