Fixed crash on class change
Fixed crash on sentry destruction
fixed bug