fix to XP related issue

fix to XP related issue