fix bug: adding $clone into DOM in function render causes a flash of $clone in page