Remove excess indexes