fixed pet search bug