BlockGeneration: modulo error