fixt the problem with the port displaying incorrectly