Ignore packages.
Fix bug when event target is not a button.