fixes d3 refresh for search