fixed bug with default logdir