fix bug for "search criteria when I enter sometimes it adds random elements "