Fixed a resigning issue on windows.