fixed log directory issue