What do you mean with "it becomes invalid"?
Where in your code does that lead to a problem?

Cheers,
_