Fix events binding