Fix exiting prematurely

This fixes for exiting too early for lists with more than 100 ids/sns.