fix some bugs about clean