Pathfinder: Fixed a bug where port assignation was wrong