Widget variable keeps resetting in blueprint on compile

I have just created a pointer in the c++ code. and i am creating a blueprint off the code and then assigning the widget blueprint into the variable through blueprint.