in the beginning of the other frame just put:

inBound = false;