fix bug on win xp