Removing bad libraries