Fixing index loading problem