Fix directory indexing.