Fix: fix the token and cookies problem