fixed hash bug in oauth, rest client