Fixed function to load configuration in XML file.