fix infinite scroll using notes from @strukturedkaos