Fixed log bug; Fixed path bug