fix syntax errors on RHEL