correcting port number