Most of the time, event organisation is the reason for code not "working", and rarely an actual Construct 2 bug.
The thing is though your description is not enough to tell for sure.
Consider posting your capx, or at least a screenshot of the events/functions you are referring to.
We don't know your code and can't guess it.
From the sound of it, it may be moreover involved/complex.
So no way to tell and correct it just by your text paragraph.