Fixed some problems with WMGetDefaultsFromPath().