fixing erroneous ports