Branch not working properly

And changing the pins just lets you spawn the object always.