fixed error on search