index in dir fix