Fix some audit script errors