I believe UIDs change at runtime depending on the amount and order of objects. So instead of writing UID 521, which could be anything, write Sprite.UID (replace sprite with the name of the object you're trying to pin it to)
It does this, I haven't been able to figure it out. I've been looking through forum posts, I can't seem to find a solution.