fixed windows issues for Ptor