Updated NiceConnection to the one in the master branch