fix stack size calculation