Fixed a bug with finding the lowest available user and port.