Bugfixing xml configuration