Fixed back port for XP.