fix index build