fix dom structure