Fixing input/output ports. We need dummy blocks for them so that refinement don't break the references.