fix the bug of wei oauth