fix bug with search and no samples selected