fix log message issue