fixed bug in copying rev 0 to new revision