Fixes #566 - prefs not being saved in some plugins.