removing bad metadata