Fixes issue with port not being found in adaptor connection.