fixed EventListener crash bug