Fix js bug from infinite scroll when using search history + disable first load