fixed the log messages not show correctly.