Fix the registry reading in WIN XP