C# Selecting Planes in 2D drawing problem

Hi guys

What do you think is the problem in here every time I`m selecting this created Planes in 2D drawing (manually or via program)

I`m getting this error ,  this was created via reference geometry and coincident to a face.

any help will be appreciated thanks.

Regards,

Gab

SolidworksApi macros