Fix to avoid circular references dumping traces