fix Angular event handling