fix dom events