Bug introduced in issue #22, forgot to import "copy" module