Fix resize for stack nodes