last dir fix