fixed extended search bug