fixed bug on oAuth