fix crash when reading old powder.pref on windows