How to construct object from `TSubclassOf<UMyObject>`

doesn’t work properly for me …
it has very weird behavior, like the object is only half valid … it looks fine until i use a function from it, and then it acts like a nullptr obj …
the object works fine when i build it with ConstructObjectFromClass with blueprint.