Shouldn't be copy() but update().
Tested now, and at least the exception is gone.