fix using DOM engine