fixing issue when no tokens found