clash of clans - fix a bug with barracks overflow while distribution in rare cases