avoid exception when running under windows