Could be many reasons, not enough info. 'seems like it never gets changed' means you checked what and where? What are the events like for setting the parent? Are you saying the stick variable and the tree UID were definitely the same? Do you have other events that change the bool variable that could be conflicting and set it back?