Fixed a bug when selecting a smaller stacksize than the current internal stack sizes.