bugfix: post regeneration uses the right number logic to compute which posts get rebuilt