improve filter for patches: don't show irrelevant patches

restore condition for needed patches