fix revert_to_copy