update index fix bug