Fix modstore pagecount

This fixes the fact that there is one page more in some cases in modstore.