Variable value does not change

I don’t change it everywhere except for the function being called.