match all cancel events. should fix #544