Fix the script issue in syslog