use deep clear in ex_docmd.c