fix bug with wrong token error