Fix invalid initial sample sizes.