fixed RestInputAdapter issue