Fix segfault on index auto recovery