fixed small issue with directory indexing