small bug fix for infinite scroll