Fixed bug where infinite scroll was repeating the previous button many times