Fix old dom api render bug