Grasshopper canvas freezes using "RhinoGet.GetOneObject"

Hi all,

I’m trying to use the following method from a c sharp component:

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) (3.2 KB)

Any ideas on how to solve it? (3.7 KB)

old problem
easy fix with an extra gate

Great, thanks!