fixing logdir