Fix a bug which will lead to a exception when uninstall windows8 lib.