[Config] Fixed namespace issues and failing to switch on a string.