Create a Family Instance Python errors

Hello,

I am using a package node of Springs ꟿ FamilyInstance.ByGeometry
image

with geometry input: Surfaces and Meshes, and I understand it does not like Meshes but Surfaces.

Traceback (most recent call last):
File “”, line 424, in NewForm_background
TypeError: Error in IEnumeratorOfTWrapper.Current. Could not cast: Autodesk.DesignScript.Geometry.Geometry in Autodesk.DesignScript.Geometry.Mesh

Also I got this Python warning:

File “”, line 523, in NewForm_background
UnboundLocalError: Local variable ‘famdoc’ referenced before assignment.

Any workaraound for that?