Lots of fixes to the presets manager.