fixed rest client issue