fixing some bugs in the infinite scroll
Merge pull request #397 from eduardomartines/em_infinitescroll_bugfixes

Fixing 2 bugs in the Infinite Scroll feature