Fix audit script errors