Fix REST connection