Make file list indexing (hopefully) work