Fixing a bug where pet parties would not always be written to disk.