fix do stmt search bug