fixed a directory cleaning.