'Swipe menu, problem with the first instantiated gameobject

I am making a map selector for one of my projects, and I have a strange problem with the first instantiated image. Here are two pictures so you can understand better: enter image description here

enter image description here

So it's a list of prefabs that are generated in the start function, the prefab that is in the center of the camera gets bigger to be highlighted, and the others get smaller. Except that it works on all the images, except the one on the far left.

Also, I have the following error in the console but no precision on the line in question.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source