Fix error in Programmatic API copy
Merge pull request #56 from andrewgarner/patch-1

Fix error in Programmatic API copy