fix index failed problem