Log dir fix