Fix #undefined on the infinite scroll pages