My Animator.SetBool(false) doesn't turn the bool to false

So, I have a problem with Animator, in which i can turn a bool to true, but can’t turn it back to false.
Here’s the code:

public Animator anim;
    bool isHovering;

    public bool isToClose;

    private void Update() {
        if(isHovering && !isToClose)
        {
            anim.SetBool("isMenuOpen", true);
        }
        else if(isHovering && isToClose)
        {
            anim.SetBool("isMenuOpen", false);
        }
    }
    public void OnPointerEnter(PointerEventData eventData)
    {
        isHovering = true;
    }
    public void OnPointerExit(PointerEventData eventData)
    {
        isHovering = false;
    }

Quick note: it DOES work on one object, but it doesn’t on another

Add logs to see if the code actually runs.
Also log if you have the right component/object selected

Yes, I’ve added them before, and even in the if statement, so it’s something wrong with the animator

nvm, i changed it