SENTRY-340 fix a bug