Fix update statement for revisions