Fix saving files to disk.