fixed bug for old win version