stamina widget doesnt work after death.

Hi @SupportiveEntity . my death and respawning system is by destroying the actor.
The error message is this: Blueprint Runtime Error: “Attempted to access BP_FirstPersonCharacter_C_0 via property char ref, but BP_FirstPersonCharacter_C_0 is not valid (pending kill or garbage)”. Node: Return Node Graph: GetPercent_0 Function: Get Percent 0 Blueprint: staminawidget .


this is the code for the stamina widget.