Fixed infinite scroll bug