fixed bug infinite scroll, now it does not load all the data (this needs to be fixed but still it works better)