fixed pvxml bugs in windows