wrong action if event.type is different from listener's type