fixed the add a bug on index partial