fix bug of event binding