Fix the config-reset and storage on Windows