Uninitialized variable when cloning stacks