fix wrapped error stacktrace