Fix port offsets