fixed bug dispatch event failure in chrome

#2474