Fix Self-Registration Error in windows