Avoid attempting to copy the selected object over itself

Fixes #14