fix bug in syslog