Resolve problems with ports