Update index before trying to build