[bugfix] clear directory