Fix windows XP bug