Fix the DOM mutation issue.