To remove the duplicate indexes