Fix a bug with qb problem generation when number of blocks was not specified.