Fix index loading