Bug fix in loading indexed files