fix bug: create logpath