Removed unnecessary DOM changes.