popover shows correct search result; doesnt run if count === 0