fix restlet connection problem