Fixed edit search bug