cleanup old reference indices