fix event unbinding