Fix bug where listview was not rendered correctly on second search.