Component Outport misteriously appearing

Hi, I have a working component. Whenever I expand the component and create again the component, it will come back without some of the original in/out connections. So I recreate the missing links, but then I start getting an error when executing it.

The picture includes the step by step to reproduce the error.