fix revert_to_copy
Merge pull request #531 from dimagi/fix-revert

fix revert_to_copy