Fix when using a module and loading the wrong preferences.