Removing bad categories