Fix paging problems in samples. 

Index would be out of bounds without paging in any community with more than 10 members if you just loop to the total results.