Fixed stacksize bug