fix events binding error