fix the js bug that prevents tag search to display properly