Fixing bad dom issues.