Fixed error in node rest client