Unexplained segfault when saving Presets.