Switching to custom gamestate ignoring level blueprint?

Hi, I switched to a custom game state to have a variable initialized in level BP and use in Main UI widget but the problem is after switching the game state code in level BP dosent work at all. Why does this happens and how to resolve it?

Can you share how you have setup your blueprints? if you are using begin play then by the time code tries to do something with gamestate/variable in level bp, the object itself might not have been initialized yet.

Sorry cant share the blueprints as my workstation is in office and there is a holiday because of the festivals…but my blueprints are on event begin play in level bp but things like creating a widget , setting camera view , show mouse cursor stop working as i switch to the custom game state created, as long as it is on deafault game state base it works fine