fix addindex merge issue