GetUserWidgetObject returning null on packaged build

Hey so when I use GetUserWidgetObject() it returns true and works perfectly fine but when I package my build it doesn’t work and returns null! Is there any reason for this, please help me!