fixing sentry apply bug