Hi, this is because GMS physics objects works after physics world is created. When placing objects in the editor we must ensure that object which creates physics world is created before anything else.
You have three options:
-Leave that code and place your objects in the editor and the code recreates them after world creation
-Remove the code but give this object high depth eg. 1000 so it will be created first
-Remove the code and place all objects using code after world creation