Make folder pagination work