Code looks ok to me. What is the condition above the for each loop? When you are sure, there is an element with value 1 in (X, 0, 1) and the loop was executed, check the debugger whether your objects were created but may be not on the screen. Does the layer "obj" exist in your current layout? Perhaps you add an action, which is independent of other values, such as changing a text. If the text does not change, insert the action in the direct parent event to see when the conditions are not met, and so narrow the error.
If all this does not help, we need more information