Fixed bug in file indexer