fixed permanently removing directories