Fix issue when cloning pages with files.