fix infinite scroll directive