fixed a bug with oAuth