Removing bad index