Fix usage of wrong/uninitialized variable

cause of segfault in EndAudit