fix index path bug