fix bugs of LOG