No need (I think) to copy selected item into scope.

I removed this deep copy because (amazingly) it broke with "RangeError: Maximum call stack size exceeded"