diff --git a/keyvi/include/keyvi/dictionary/dictionary.h b/keyvi/include/keyvi/dictionary/dictionary.h index f2ca67bf2..a0aa7fe75 100644 --- a/keyvi/include/keyvi/dictionary/dictionary.h +++ b/keyvi/include/keyvi/dictionary/dictionary.h @@ -270,7 +270,7 @@ class Dictionary final { iterators.pop(); auto func = [iterators = std::move(iterators), current_it]() mutable { - while (iterators.size() && *current_it) { + while (iterators.size() && !*current_it) { current_it = iterators.front(); iterators.pop(); }