Fixed issue with ports