removing bad directory