fix stack overflow.  stack size changed to 1600000