[[ Bug 12777 ]] Copy command crashes in release mode
Merge pull request #879 from runrevali/bugfix-12777

[[ Bug 12777 ]] Copy command crashes in release mode