I believe you are seeing an expected behaviour, in that, newly created objects can't be fully addressed until the next top-level event. You've already got the solution in the "This work correctly" event. Just add the same zaman condition, and move your zaman=1 to the second event so they both run just once.

Keep in mind that IIDs and UIDs are not fixed. They can change as objects are created/deleted. Use some other means to address them explicitly.

I just recently gave up on IIDs and UIDs myself. As several others have suggested in other places, I have just created my own ID instance variable and manually assign them to my objects. It's probably not the best solution, but it does ensure that they don't change on me.