fix the bug on filtering unwanted seeds

Select the correct next seed