LeanTween loading bar

Hello there,

I am trying to make a loading bar using the DG.Tweening library. And I’m having an issue. When I first run the game in editor it works perfectly but when stop and run again my LeanTween.ScaleX stops working any idea why? Here is the code piece where I handle the bar.

private void Awake()
{
LeanTween.init(800);
}

public void LoadBar()
{
    LoadBarBG.SetActive(true);
    HealMenu.SetActive(false);
    LeanTween.scaleX(loadBar, 1, timeToLoad).setOnComplete(OnComplete);
}

public void OnComplete()
{
    LeanTween.scaleX(loadBar, 0, 0);
    LoadBarBG.SetActive(false);
    HealMenu.SetActive(true);
     
}

I run the LoadBar function in another script that has onClick on a UI element. Meaning if clicked to that UI element the UI is deactivated and the loading bar pops up