log dir fix