Fix errors when fetching revisions