Fixed DOM memory leaks: those elements appeared as "Detached DOM tree" in the Heap Snapshot of chrome