Fix an issue occuring when using iterate with something else than search.