Fix bugs of past logs