bugfix event when using html5