Fix port definitions