"Fix little bugs in Log and eliminate some warnings"