change distance search bug