fixed bug dispatchevet failure in chrome

#2474