Widget variable keeps resetting in blueprint on compile

did you set the variable on beginplay or constructor?
try setting it on constructor