workaround for bug in print-cause-trace (probably)