Fixed handling of the port argument.