SENTRY-342 fix a bug