fix offline search bug