Update index to fix bug