fixed bug with token adapter