fixed event handling bug