Fixed bug with connecting of Loopback mediator