fixing index insert process behaviour not to duplicate entries