bugfix: avoid warning in rare cases: Use of uninitialized value $cfg{'trace'}