Grasshopper canvas freezes using "RhinoGet.GetOneObject"

Hi all,

I’m trying to use the following method from a c sharp component:
Rhino.Input.RhinoGet.GetOneObject()

Everything works as expected but, as per title, the canvas freezes and the only way to un-freeze it is to redo the same operation (The attached file should show what I mean)

getObject.gh (3.2 KB)

Any ideas on how to solve it?

getObject_ww.gh (3.7 KB)

old problem
easy fix with an extra gate

Great, thanks!