event binding - bug fix