fix syslog bug