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