fix a error when use delegated event