Use all of searched action, not just the one that respect occurence number, to check for result

Fix #619