SENTRY-345 fix a bug