fixed long distance search bug