Guust's fix for reading attributes from config.xml