fixed problem of controls not getting events