bug fix on search edit