Iit’s very easy to have one function open in the code window, but another function selected
Could it be that?