Fixing the audit script errors