Fixed setting of port.