Various fixes to copy revisions