Ming Jin: fix clear scripts