fix dom event helper