Fix DOM structure