fix events binding