fixed incorrect event trigger