How to connect foreachloop with "set simulate physics"

Set simulated physics works in other scenarios. It is just the connection from the foreachloop to the Set simulated Physics that is causing the problem