fixed TokenNotFoundException and undefined _access_type error