fix search.add going only to localhost