This happens only when w=0.90 or above while setting the number of rounds as below:
const int rounds=round(1/(1-w));
The above feeds into another formula which decides one of the transition probabilities as below:
formula sizeBAD = l/((rounds-1)+l-g)