fix event binding error