Fix for missing port definitions during structure resolution