fixing type issue with port number