fix the bug of oauth