Behaviour is un-predicted: some time works and some time not

I’m simply spawning a road units with pick ups on them.

In this my first step was to just generate the road units, till than it was fine. After this I added code for spawning the pickup’s inside the road unit.

If you comment this line, than its working fine:
49 PM

Here is project:

Sorry guys… it my bad… i did take java script so lightly, and haven’t wrote ‘var’ before variable.
Now its working fine.

55 PM