Fixed warning undefined 'token'