fixed handleRecursion (don't copy Stack)