Fix updating file sizes of documents