fixed #2034:use previous path to get UserDefault.xml