Fixed a problem with loading constants from an XML file.