Fix startup crash about stack size