fix insane slowdown in the Index