fixed crash when token wasn't directly available