fixed file indexing