[#339] fixed "cancel" event management