fixs logpath