Fix bug when tokens are empty