fixed bug on oauth