Fixed stack update not happening when increasing the stack size