require dir fix